package cn.tedu._04homework.mapper;

import cn.tedu._04homework.shop.Product;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface PMapper {
    @Insert("Insert INTO product(id,title,price,stock) VALUES (#{id},#{title},#{price},#{stock})")
    void insertProduct(Product product);
}
